<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Pepr3D: D:/Home/MFF/1-Mgr/projekt/pepr3d/src/ui/CameraUi.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="pepr3d_icon.svg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Pepr3D
   &#160;<span id="projectnumber">v1.0</span>
   </div>
   <div id="projectbrief">Pepr3D is a 3D graphics editor designed for FDM printing</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('_camera_ui_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">CameraUi.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> Copyright (c) 2010, The Cinder Project, All rights reserved.</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> This code is intended for use with the Cinder C++ library: http://libcinder.org</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> Redistribution and use in source and binary forms, with or without modification, are permitted provided that</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> the following conditions are met:</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">    * Redistributions of source code must retain the above copyright notice, this list of conditions and</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">    the following disclaimer.</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">    * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">    the following disclaimer in the documentation and/or other materials provided with the distribution.</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot; AND ANY EXPRESS OR IMPLIED</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">*/</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &quot;cinder/Camera.h&quot;</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &quot;cinder/Vector.h&quot;</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &quot;cinder/app/MouseEvent.h&quot;</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &quot;cinder/app/Window.h&quot;</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacepepr3d.html">pepr3d</a> {</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_camera_ui.html">   37</a></span>&#160;<span class="keyword">class </span><a class="code" href="classpepr3d_1_1_camera_ui.html">CameraUi</a> {</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;   <span class="keyword">public</span>:</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <a class="code" href="classpepr3d_1_1_camera_ui.html">CameraUi</a>();</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <a class="code" href="classpepr3d_1_1_camera_ui.html">CameraUi</a>(ci::CameraPersp *camera, <span class="keyword">const</span> ci::app::WindowRef &amp;window = <span class="keyword">nullptr</span>, <span class="keywordtype">int</span> signalPriority = 0);</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <a class="code" href="classpepr3d_1_1_camera_ui.html">CameraUi</a>(<span class="keyword">const</span> <a class="code" href="classpepr3d_1_1_camera_ui.html">CameraUi</a> &amp;rhs);</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    ~<a class="code" href="classpepr3d_1_1_camera_ui.html">CameraUi</a>();</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <a class="code" href="classpepr3d_1_1_camera_ui.html">CameraUi</a> &amp;operator=(<span class="keyword">const</span> <a class="code" href="classpepr3d_1_1_camera_ui.html">CameraUi</a> &amp;rhs);</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_camera_ui.html#a740dadafa1f80d92bf2a902d86f61158">connect</a>(<span class="keyword">const</span> ci::app::WindowRef &amp;window, <span class="keywordtype">int</span> signalPriority = 0);</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_camera_ui.html#a4f9366d1c5961a86329eb87742cc285e">disconnect</a>();</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classpepr3d_1_1_camera_ui.html#a5b7750464d56c67303ad2f1ea62b6058">isConnected</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_camera_ui.html#a4c4ec9d00391cb7dbe1cce0fcc0972f2">   57</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_camera_ui.html#a4c4ec9d00391cb7dbe1cce0fcc0972f2">enable</a>(<span class="keywordtype">bool</span> <a class="code" href="classpepr3d_1_1_camera_ui.html#a4c4ec9d00391cb7dbe1cce0fcc0972f2">enable</a> = <span class="keyword">true</span>) {</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        mEnabled = <a class="code" href="classpepr3d_1_1_camera_ui.html#a4c4ec9d00391cb7dbe1cce0fcc0972f2">enable</a>;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    }</div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_camera_ui.html#a0f33d7c28919fceeb71dce9a7dcfea3b">   62</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_camera_ui.html#a0f33d7c28919fceeb71dce9a7dcfea3b">disable</a>() {</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        mEnabled = <span class="keyword">false</span>;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    }</div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_camera_ui.html#aac526bacbbfa39a6ae2be1527ec136fd">   67</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classpepr3d_1_1_camera_ui.html#aac526bacbbfa39a6ae2be1527ec136fd">isEnabled</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        <span class="keywordflow">return</span> mEnabled;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    }</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    ci::signals::Signal&lt;void()&gt; &amp;<a class="code" href="classpepr3d_1_1_camera_ui.html#a54beecb97cfea39ce1419ca5e1591bf0">getSignalCameraChange</a>();</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <span class="keywordtype">void</span> mouseDown(ci::app::MouseEvent &amp;event);</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="keywordtype">void</span> mouseUp(ci::app::MouseEvent &amp;event);</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <span class="keywordtype">void</span> mouseWheel(ci::app::MouseEvent &amp;event);</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <span class="keywordtype">void</span> mouseDrag(ci::app::MouseEvent &amp;event);</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <span class="keywordtype">void</span> mouseDown(<span class="keyword">const</span> glm::vec2 &amp;mousePos);</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="keywordtype">void</span> mouseUp(<span class="keyword">const</span> glm::vec2 &amp;mousePos);</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="keywordtype">void</span> mouseWheel(<span class="keywordtype">float</span> increment);</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="keywordtype">void</span> mouseDrag(<span class="keyword">const</span> glm::vec2 &amp;mousePos, <span class="keywordtype">bool</span> leftDown, <span class="keywordtype">bool</span> middleDown, <span class="keywordtype">bool</span> rightDown);</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_camera_ui.html#aaae962d04b85948a651219bdafcebae6">   85</a></span>&#160;    <span class="keyword">const</span> ci::CameraPersp &amp;<a class="code" href="classpepr3d_1_1_camera_ui.html#aaae962d04b85948a651219bdafcebae6">getCamera</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;        <span class="keywordflow">return</span> *mCamera;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    }</div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_camera_ui.html#a2ca4199246c29913492a640f8e0e0a95">   89</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_camera_ui.html#a2ca4199246c29913492a640f8e0e0a95">setCamera</a>(ci::CameraPersp *camera) {</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        mCamera = camera;</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    }</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_camera_ui.html#a2c23f95d7c2ecb2234bdd6edb0450017">   94</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_camera_ui.html#a2c23f95d7c2ecb2234bdd6edb0450017">setWindowSize</a>(<span class="keyword">const</span> glm::ivec2 &amp;windowSizePixels) {</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        mWindowSize = windowSizePixels;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    }</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_camera_ui.html#af34ec9925c96b8133cb4e69e2405532b">  100</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_camera_ui.html#af34ec9925c96b8133cb4e69e2405532b">setMouseWheelMultiplier</a>(<span class="keywordtype">float</span> multiplier) {</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        mMouseWheelMultiplier = multiplier;</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    }</div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_camera_ui.html#a92e74d770734c45b548318a71adc567e">  104</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="classpepr3d_1_1_camera_ui.html#a92e74d770734c45b548318a71adc567e">getMouseWheelMultiplier</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        <span class="keywordflow">return</span> mMouseWheelMultiplier;</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    }</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_camera_ui.html#a7e38eccabdb7ab5e70b232fee61e22c7">  110</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpepr3d_1_1_camera_ui.html#a7e38eccabdb7ab5e70b232fee61e22c7">setMinimumPivotDistance</a>(<span class="keywordtype">float</span> minPivotDistance) {</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        mMinimumPivotDistance = minPivotDistance;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    }</div><div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="classpepr3d_1_1_camera_ui.html#ae52cbe0fd5f011dbc4ab77931e91071f">  114</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="classpepr3d_1_1_camera_ui.html#ae52cbe0fd5f011dbc4ab77931e91071f">getMinimumPivotDistance</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        <span class="keywordflow">return</span> mMinimumPivotDistance;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    }</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    <span class="keywordtype">bool</span> isFovZoomEnabled()<span class="keyword"> const </span>{</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;        <span class="keywordflow">return</span> mIsFovZoomEnabled;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    }</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <span class="keywordtype">void</span> setFovZoomEnabled(<span class="keywordtype">bool</span> enabled) {</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        mIsFovZoomEnabled = enabled;</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    }</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;   <span class="keyword">private</span>:</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    <span class="keyword">enum</span> { ACTION_NONE, ACTION_ZOOM, ACTION_PAN, ACTION_TUMBLE };</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    glm::ivec2 getWindowSize() <span class="keyword">const</span>;</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    glm::vec2 mInitialMousePos;</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    <span class="keywordtype">float</span> mDeltaYBeforeFlip;</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    ci::CameraPersp mInitialCam;</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    ci::CameraPersp *mCamera;</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    <span class="keywordtype">float</span> mInitialPivotDistance;</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    <span class="keywordtype">float</span> mMouseWheelMultiplier, mMinimumPivotDistance;</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    <span class="keywordtype">int</span> mLastAction;</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <span class="keywordtype">bool</span> mIsFovZoomEnabled = <span class="keyword">false</span>;  <span class="comment">// default is dolly zoom (not FOV based)</span></div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    glm::ivec2 mWindowSize;  <span class="comment">// used when mWindow is null</span></div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    ci::app::WindowRef mWindow;</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    <span class="keywordtype">bool</span> mEnabled;</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    <span class="keywordtype">int</span> mSignalPriority;</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    std::vector&lt;ci::signals::Connection&gt; mConnections;</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    ci::signals::Signal&lt;void()&gt; mSignalCameraChange;</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;};</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;}  <span class="comment">// namespace pepr3d</span></div><div class="ttc" id="namespacepepr3d_html"><div class="ttname"><a href="namespacepepr3d.html">pepr3d</a></div><div class="ttdoc">Fix for CGAL bugs in polygon with holes verification Contained in CGAL PR #3688, likely to be in 4....</div><div class="ttdef"><b>Definition:</b> CmdColorManager.h:9</div></div>
<div class="ttc" id="classpepr3d_1_1_camera_ui_html_aaae962d04b85948a651219bdafcebae6"><div class="ttname"><a href="classpepr3d_1_1_camera_ui.html#aaae962d04b85948a651219bdafcebae6">pepr3d::CameraUi::getCamera</a></div><div class="ttdeci">const ci::CameraPersp &amp; getCamera() const</div><div class="ttdoc">Returns a reference to the currently controlled CameraPersp.</div><div class="ttdef"><b>Definition:</b> CameraUi.h:85</div></div>
<div class="ttc" id="classpepr3d_1_1_camera_ui_html_a54beecb97cfea39ce1419ca5e1591bf0"><div class="ttname"><a href="classpepr3d_1_1_camera_ui.html#a54beecb97cfea39ce1419ca5e1591bf0">pepr3d::CameraUi::getSignalCameraChange</a></div><div class="ttdeci">ci::signals::Signal&lt; void()&gt; &amp; getSignalCameraChange()</div><div class="ttdoc">Signal emitted whenever the user modifies the camera.</div><div class="ttdef"><b>Definition:</b> CameraUi.cpp:115</div></div>
<div class="ttc" id="classpepr3d_1_1_camera_ui_html_a2ca4199246c29913492a640f8e0e0a95"><div class="ttname"><a href="classpepr3d_1_1_camera_ui.html#a2ca4199246c29913492a640f8e0e0a95">pepr3d::CameraUi::setCamera</a></div><div class="ttdeci">void setCamera(ci::CameraPersp *camera)</div><div class="ttdoc">Specifices which CameraPersp should be modified.</div><div class="ttdef"><b>Definition:</b> CameraUi.h:89</div></div>
<div class="ttc" id="classpepr3d_1_1_camera_ui_html_af34ec9925c96b8133cb4e69e2405532b"><div class="ttname"><a href="classpepr3d_1_1_camera_ui.html#af34ec9925c96b8133cb4e69e2405532b">pepr3d::CameraUi::setMouseWheelMultiplier</a></div><div class="ttdeci">void setMouseWheelMultiplier(float multiplier)</div><div class="ttdoc">Sets the multiplier on mouse wheel zooming. Larger values zoom faster. Negative values invert the dir...</div><div class="ttdef"><b>Definition:</b> CameraUi.h:100</div></div>
<div class="ttc" id="classpepr3d_1_1_camera_ui_html_a7e38eccabdb7ab5e70b232fee61e22c7"><div class="ttname"><a href="classpepr3d_1_1_camera_ui.html#a7e38eccabdb7ab5e70b232fee61e22c7">pepr3d::CameraUi::setMinimumPivotDistance</a></div><div class="ttdeci">void setMinimumPivotDistance(float minPivotDistance)</div><div class="ttdoc">Sets the minimum allowable pivot distance. Default is 1.0. If the user dollies closer than minPivotDi...</div><div class="ttdef"><b>Definition:</b> CameraUi.h:110</div></div>
<div class="ttc" id="classpepr3d_1_1_camera_ui_html_a2c23f95d7c2ecb2234bdd6edb0450017"><div class="ttname"><a href="classpepr3d_1_1_camera_ui.html#a2c23f95d7c2ecb2234bdd6edb0450017">pepr3d::CameraUi::setWindowSize</a></div><div class="ttdeci">void setWindowSize(const glm::ivec2 &amp;windowSizePixels)</div><div class="ttdoc">Sets the size of the window in pixels when no WindowRef is supplied with connect()</div><div class="ttdef"><b>Definition:</b> CameraUi.h:94</div></div>
<div class="ttc" id="classpepr3d_1_1_camera_ui_html_a4f9366d1c5961a86329eb87742cc285e"><div class="ttname"><a href="classpepr3d_1_1_camera_ui.html#a4f9366d1c5961a86329eb87742cc285e">pepr3d::CameraUi::disconnect</a></div><div class="ttdeci">void disconnect()</div><div class="ttdoc">Disconnects all signal handlers.</div><div class="ttdef"><b>Definition:</b> CameraUi.cpp:103</div></div>
<div class="ttc" id="classpepr3d_1_1_camera_ui_html_a4c4ec9d00391cb7dbe1cce0fcc0972f2"><div class="ttname"><a href="classpepr3d_1_1_camera_ui.html#a4c4ec9d00391cb7dbe1cce0fcc0972f2">pepr3d::CameraUi::enable</a></div><div class="ttdeci">void enable(bool enable=true)</div><div class="ttdoc">Sets whether the CameraUi will modify its CameraPersp either through its Window signals or through th...</div><div class="ttdef"><b>Definition:</b> CameraUi.h:57</div></div>
<div class="ttc" id="classpepr3d_1_1_camera_ui_html_aac526bacbbfa39a6ae2be1527ec136fd"><div class="ttname"><a href="classpepr3d_1_1_camera_ui.html#aac526bacbbfa39a6ae2be1527ec136fd">pepr3d::CameraUi::isEnabled</a></div><div class="ttdeci">bool isEnabled() const</div><div class="ttdoc">Returns whether the CameraUi will modify its CameraPersp either through its Window signals or through...</div><div class="ttdef"><b>Definition:</b> CameraUi.h:67</div></div>
<div class="ttc" id="classpepr3d_1_1_camera_ui_html_a0f33d7c28919fceeb71dce9a7dcfea3b"><div class="ttname"><a href="classpepr3d_1_1_camera_ui.html#a0f33d7c28919fceeb71dce9a7dcfea3b">pepr3d::CameraUi::disable</a></div><div class="ttdeci">void disable()</div><div class="ttdoc">Prevents the CameraUi from modifying its CameraPersp either through its Window signals or through the...</div><div class="ttdef"><b>Definition:</b> CameraUi.h:62</div></div>
<div class="ttc" id="classpepr3d_1_1_camera_ui_html"><div class="ttname"><a href="classpepr3d_1_1_camera_ui.html">pepr3d::CameraUi</a></div><div class="ttdoc">Enables user interaction with a CameraPersp via the mouse.</div><div class="ttdef"><b>Definition:</b> CameraUi.h:37</div></div>
<div class="ttc" id="classpepr3d_1_1_camera_ui_html_a5b7750464d56c67303ad2f1ea62b6058"><div class="ttname"><a href="classpepr3d_1_1_camera_ui.html#a5b7750464d56c67303ad2f1ea62b6058">pepr3d::CameraUi::isConnected</a></div><div class="ttdeci">bool isConnected() const</div><div class="ttdoc">Returns whether the CameraUi is connected to mouse and window signal handlers.</div><div class="ttdef"><b>Definition:</b> CameraUi.cpp:111</div></div>
<div class="ttc" id="classpepr3d_1_1_camera_ui_html_a740dadafa1f80d92bf2a902d86f61158"><div class="ttname"><a href="classpepr3d_1_1_camera_ui.html#a740dadafa1f80d92bf2a902d86f61158">pepr3d::CameraUi::connect</a></div><div class="ttdeci">void connect(const ci::app::WindowRef &amp;window, int signalPriority=0)</div><div class="ttdoc">Connects to mouseDown, mouseDrag, mouseWheel and resize signals of window, with optional priority sig...</div><div class="ttdef"><b>Definition:</b> CameraUi.cpp:76</div></div>
<div class="ttc" id="classpepr3d_1_1_camera_ui_html_a92e74d770734c45b548318a71adc567e"><div class="ttname"><a href="classpepr3d_1_1_camera_ui.html#a92e74d770734c45b548318a71adc567e">pepr3d::CameraUi::getMouseWheelMultiplier</a></div><div class="ttdeci">float getMouseWheelMultiplier() const</div><div class="ttdoc">Returns the multiplier on mouse wheel zooming. Default is 1.2.</div><div class="ttdef"><b>Definition:</b> CameraUi.h:104</div></div>
<div class="ttc" id="classpepr3d_1_1_camera_ui_html_ae52cbe0fd5f011dbc4ab77931e91071f"><div class="ttname"><a href="classpepr3d_1_1_camera_ui.html#ae52cbe0fd5f011dbc4ab77931e91071f">pepr3d::CameraUi::getMinimumPivotDistance</a></div><div class="ttdeci">float getMinimumPivotDistance() const</div><div class="ttdoc">Returns the minimum allowable pivot distance. Default is 1.0.</div><div class="ttdef"><b>Definition:</b> CameraUi.h:114</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_da5c6b39c0a2f54e57df6799511cd3ab.html">ui</a></li><li class="navelem"><b>CameraUi.h</b></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
  </ul>
</div>
</body>
</html>
